package com.gang.music.system.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author gang
 * @since 2017-10-26
 */
@TableName("pt_user_song")
public class UserSong extends Model<UserSong> {

    private static final long serialVersionUID = 1L;

    @TableId("user_id")
	private Long userId;
	@TableField("song_id")
	private Long songId;

	public UserSong(Long userId, Long songId) {
		this.userId = userId;
		this.songId = songId;
	}
	
	public UserSong() {
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public Long getSongId() {
		return songId;
	}

	public void setSongId(Long songId) {
		this.songId = songId;
	}

	@Override
	protected Serializable pkVal() {
		return this.userId;
	}

	@Override
	public String toString() {
		return "UserSong{" +
			"userId=" + userId +
			", songId=" + songId +
			"}";
	}
}
